<template>
	<view class='container'>
		<view v-for='(item,index) in share' :key='index'>
			<view v-if='item == "WXSceneSession"' @click='goWx'>
				微信
			</view>
			<view v-if='item == "WXSceneTimeline"' @click='goWxp'>
				微信朋友圈
			</view>
			<view v-if='item == "qq"' @click='goQQ'>
				QQ
			</view>
			<view v-if='item == "sinaweibo"' @click='goSina'>
				微博
			</view>
		</view>
	</view>
</template>

<script>

export default{
	props:{
		share:{
			type:Array,
			default:['WXSceneSession','WXSceneTimeline','qq','sinaweibo']
		}
	},
	methods:{
		goWx(){
			
		},
		goWxp(){
			
		},
		goQQ(){
			// #ifdef H5
				window.location.href = 'https://open.weixin.qq.com/connect/qrconnect?response_type=code&appid=wx49a4993d58eeeff8&redirect_uri=https://www.xuexiluxian.cn/oauth/WECHAT_OPEN/callback&scope=snsapi_login&state=55886befa0380e9da64e6ee55229f7d0'
			// #endif
			
			// #ifdef APP-PLUS
			
			// #endif
		},
		goSina(){
			
		}
	}
}
</script>

<style>
.container{
	background-color: #fff;
}
</style>